package com.smiier.skin.net;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.QuestionLimitCheckTask.QuestionLimitCheckRequest;
import com.smiier.skin.net.QuestionLimitCheckTask.QuestionLimitCheckResponse;
import com.smiier.skin.util.GlobalSettings;

public class QuestionLimitCheckTask extends
		NetTask<QuestionLimitCheckRequest, QuestionLimitCheckResponse> {
	public static class QuestionLimitCheckRequest extends ORequest {
		public String token;
		public String appname = Constant.APP_NAME;
	}

	public static class QuestionLimitCheckResponse extends OResponse {
		public QuestionLimit Res;
	}

	public static class QuestionLimit {
		public int IsLimited;
		public int SysLimit;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Question.Limit.Check";
		mRequestMethod = METHOD_GET;
	}
}
